import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue'),
    },
    {
      path: '/tag',
      name: 'tag',
      component: () => import('../views/LabelTag.vue'),
    },
    {
      path: '/ske',
      name: 'ske',
      component: () => import('../views/SkeDelay.vue'),
    },
    {
      path: '/form',
      name: 'form',
      component: () => import('../views/FormView.vue'),
    },
    {
      path: '/rec',
      name: 'rec',
      component: () => import('../views/RecEdit.vue'),
    },
    {
      path: '/st',
      name: 'st',
      component: () => import('../views/SliderToggle.vue'),
    },
    {
      path: '/av',
      name: 'av',
      component: () => import('../views/AlertView.vue'),
    },
    {
      path: '/tb',
      name: 'tb',
      component: () => import('../views/TableView.vue'),
    },
    {
      path: '/mv',
      name: 'mv',
      component: () => import('../views/MenuView.vue'),
    },
    {
      path: '/lv',
      name: 'lv',
      component: () => import('../views/LayoutView.vue'),
    },
    {
      path: '/sm',
      name: 'sm',
      component: () => import('../views/StudentMgr.vue'),
    },
  ],
})

export default router
